﻿using System;

namespace IceDog.Lib.Event.BoildWater.BoildWater.Warning
{
    class Display
    {
        public static void ShowMessage(Object sender,BoiledEventArgs e)
        {
            if (e.Temperature == 100)
            {
                Console.WriteLine("Display:水已经开了");
                Console.WriteLine("Display:已经停止烧水");
            }
            else
            {
                Console.WriteLine("Display:水已经 {0} 度了。", e.Temperature);
            }
        }
    }
}
